package com.DesignPatten.Builder;

/**
 * @ClassName TestForkJoin
 * @Date 2021/7/26 22:17
 * @Author 李明杰
 * @Description 最常用创建方式
 */

public class Test {
    public static void main(String[] args) {

        Worker worker = new Worker();
        //链式编程：在原来基础上自由组合
        Product product = worker.builderA("全家桶").builderB("可乐").getProduct();
        System.out.println(product);
    }
}
